package com.betterjr.modules.application.dubbo;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.betterjr.common.web.AjaxObject;
import com.betterjr.modules.application.IApplicationTypeService;
import com.betterjr.modules.application.service.ApplicationTypeService;

@Service(interfaceClass = IApplicationTypeService.class)
public class ApplicationTypeDubboService implements IApplicationTypeService {

    @Autowired
    private ApplicationTypeService applicationTypeService;

    /**
     * 
     * @Title: queryApplicationTypeList 
     * @Description: 查询应用类型信息
     * @param anFlag  是否查询条数   0 不查询条数   1 查询当前应用类型下面的条数
     * @param anBusinStatus  查询的应用机构的状态 状态 1未生效 2已生效 9已失效
     * @return 
     * @see com.betterjr.modules.application.IApplicationTypeService#webQueryApplicationTypeList(java.lang.String) 
     * @author xuyp
     * @date 2017年11月15日 下午4:51:03
     */
    @Override
    public String webQueryApplicationTypeList(String anFlag, String anBusinStatus) {

        return AjaxObject.newOk("查询成功", applicationTypeService.queryApplicationTypeList(anFlag, anBusinStatus))
                .toJson();
    }

}
